﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Studio.Common;
using Renci.iRods.Studio.Common.BaseClasses;

namespace Renci.iRods.Studio.ViewModels
{
    public class StatusBarConnectedViewModel : ViewModelBase
    {
        private IRodsConnection _connection;

        public string Username { get; private set; }

        public string Host { get; private set; }

        public string ZoneName { get; private set; }

        public string ResourceName { get; private set; }

        public StatusBarConnectedViewModel()
        {
                
        }

        public StatusBarConnectedViewModel(IRodsConnection connection)
        {
            // TODO: Complete member initialization
            this._connection = connection;

            this.Username = connection.ConnectionInfo.Username;
            this.Host = connection.ConnectionInfo.Host;
            this.ZoneName = connection.RodsZone;
            this.ResourceName = connection.ResourceName;
        }
    }
}
